home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 1
/
Cream of the Crop 1.iso
/
UTILITY
/
DO1002.ARJ
/
SCRIPTS.SCR
< prev
next >
Wrap
Text File
|
1991-12-03
|
3KB
|
78 lines
.ma
DO SCRIPTS»#«
»%t«DO»#« scripts are standard »cy«DOS ASCII text files»#«. They can be
created with any text editor or word processor which does
»re«NOT»#« introduce special formatting characters into the script.
»%t«DO»#« scripts can be of any length. However, scripts containing
a large number of labels may exceed the memory capacity of your
computer.
.pg clr ye
DO.CFG »gray«-- »%t«DO»ye« Configuration Script
»#«
The first thing »%t«DO»#« does when started is look in the DOS PATH
for a special script "»ma«DO.CFG»#«". This script, if found, will be
executed. It can be used to set up you »%t«DO»#« environment. Typical
uses would be to set the external editor (»gr«EDIT»#«) and file lister
(»gr«LIST»#«) you wish to use with »%t«DO»#«. Since "»ye«DO.CFG»#«" is a standard
»%t«DO»#« script, any commands can be used there.
.pg clr
»c 2 1«STARTING DO.EXE»#«
To start »%t«DO»#«, from the DOS command line type:
»cy«C> »ye type«DO [{ScriptFile} [{parameters}] [/E|/R]]»pg std«
Where "»ye«{ScriptFile}»#«" is the name of the script you wish to
run and »ye«{Parameters}»#« are any values to be passed
to the script. »ye«{ScriptFile}»#« can include a full DOS path
specification. If only "DO" is entered, »%t«DO»#« starts in
Interactive mode.
.pg
You can use »%t«DO»#«'s built in editor to edit the script or any
other file with less than »ye«64,000»#« characters. To do this,
enter the "/E" or "/R" switch after the {ScriptFile}.
»bo«/E»#« Edit the indicated file and then return to DOS
»bo«/R»#« Edit the indicated script then run the script.
Later in this tutorial, we'll look at the built-in editor in
connection with the EditFile command.
.pg clr
There is no need to enter the Script file's extension if it
is the default "»re«SCR»#«". For example:
»cy«C> »ye type pa 2 «DO TEST»std norm«
This command line executes the script TEST.SCR.
»cy«C> »ye type pa 2 «DO TEST.TXT»std«
This command line executes the script TEST.TXT.
»cy«C> »ye type pa 2 «DO TEST 2 XYZ»std«
This command line executes the script TEST.SCR and passes
the parameters "»cy«2»#«" and "»cy«XYZ»#«". (See "Parameter Passing" for
more information on passing values to a script).
.pa 2
If you wish to run a script which does »re«NOT»#« have an
extension, you must enter the trailing period ("»c 10 0«.»#«"):
.pg clr
Because »%t«DO»#« reads its scripts from the disk, it must
always have access to these files. »wh«Do »+re«NOT»wh« place
»%t«DO»wh« scripts on media that will be removed!»#«
/BOX 4 2 63 8 14 11 " SPECIAL NOTE "
/ENDEXEC CLEAR